package com.sskj.jkzx.domain.entity.quantity;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.Table;

import org.hibernate.annotations.BatchSize;

import com.sskj.core.entity.BaseEntity;

/**
 * 扬尘预警次数统计
 * 
 * @author chenliang
 *
 */
@Table(name = "jkzx_yc_alert_quantity")
@Entity
@Inheritance(strategy = InheritanceType.JOINED)
@BatchSize(size = 50)
public class YCAlertQuantity extends BaseEntity {

	private static final long serialVersionUID = -8965978825258960499L;

	/** 统计时间 */
	private Date tjYear;
	private int projectsSum; // 一共有多少个工地
	private int equipSum; // 一共有多少个设备
	private int newlyEquips; // 新增了多少个设备
	private int normalAlert; // 所有设备的pm正常次数
	private int yellowAlert; // 所有设备的黄色预警次数
	private int redAlert; // 所有设备的红色预警次数
	private int totalAlert; // 所有设备的(正常+黄色+红色)次数
	private int yellowAlertTime; // 所有设备的黄色预警时间(分钟)
	private int redAlertTime; // 所有设备的红色预警时间(分钟)
	private int yellowAlertMessage; // 所有设备发出的的黄色预警消息条数
	private int redAlertMessage; // 所有设备发出的红色预警消息条数
	private int totalAlertMessage; // 所有设备发出的预警消息条数
	private int redAlertSovledMessage; // 所有设备预警消息已被解决的条数(审核通过状态即3才算已经解决)
	private int redAlertTimeOutMessage; // 所有设备预警消息已经过期的条数(处理状态5)
	private int redAlertNotSovledMessage; // 所有设备预警消息没有解决的条数(处理状态1,2,4都算没有解决)
	private String alertdate; // 预警的日期 精确到天

	@Override
	public String toString() {
		return "YCAlertQuantity [tjYear=" + tjYear + ", projectsSum=" + projectsSum + ", equipSum=" + equipSum
				+ ", newlyEquips=" + newlyEquips + ", normalAlert=" + normalAlert + ", yellowAlert=" + yellowAlert
				+ ", redAlert=" + redAlert + ", totalAlert=" + totalAlert + ", yellowAlertTime=" + yellowAlertTime
				+ ", redAlertTime=" + redAlertTime + ", yellowAlertMessage=" + yellowAlertMessage + ", redAlertMessage="
				+ redAlertMessage + ", totalAlertMessage=" + totalAlertMessage + ", redAlertSovledMessage="
				+ redAlertSovledMessage + ", redAlertTimeOutMessage=" + redAlertTimeOutMessage
				+ ", redAlertNotSovledMessage=" + redAlertNotSovledMessage + ", alertdate=" + alertdate + "]";
	}

	public Date getTjYear() {
		return tjYear;
	}

	public void setTjYear(Date tjYear) {
		this.tjYear = tjYear;
	}

	public int getProjectsSum() {
		return projectsSum;
	}

	public void setProjectsSum(int projectsSum) {
		this.projectsSum = projectsSum;
	}

	public int getEquipSum() {
		return equipSum;
	}

	public void setEquipSum(int equipSum) {
		this.equipSum = equipSum;
	}

	public int getNewlyEquips() {
		return newlyEquips;
	}

	public void setNewlyEquips(int newlyEquips) {
		this.newlyEquips = newlyEquips;
	}

	public int getNormalAlert() {
		return normalAlert;
	}

	public void setNormalAlert(int normalAlert) {
		this.normalAlert = normalAlert;
	}

	public int getYellowAlert() {
		return yellowAlert;
	}

	public void setYellowAlert(int yellowAlert) {
		this.yellowAlert = yellowAlert;
	}

	public int getRedAlert() {
		return redAlert;
	}

	public void setRedAlert(int redAlert) {
		this.redAlert = redAlert;
	}

	public int getTotalAlert() {
		return totalAlert;
	}

	public void setTotalAlert(int totalAlert) {
		this.totalAlert = totalAlert;
	}

	public int getYellowAlertTime() {
		return yellowAlertTime;
	}

	public void setYellowAlertTime(int yellowAlertTime) {
		this.yellowAlertTime = yellowAlertTime;
	}

	public int getRedAlertTime() {
		return redAlertTime;
	}

	public void setRedAlertTime(int redAlertTime) {
		this.redAlertTime = redAlertTime;
	}

	public int getYellowAlertMessage() {
		return yellowAlertMessage;
	}

	public void setYellowAlertMessage(int yellowAlertMessage) {
		this.yellowAlertMessage = yellowAlertMessage;
	}

	public int getRedAlertMessage() {
		return redAlertMessage;
	}

	public void setRedAlertMessage(int redAlertMessage) {
		this.redAlertMessage = redAlertMessage;
	}

	public int getTotalAlertMessage() {
		return totalAlertMessage;
	}

	public void setTotalAlertMessage(int totalAlertMessage) {
		this.totalAlertMessage = totalAlertMessage;
	}

	public int getRedAlertSovledMessage() {
		return redAlertSovledMessage;
	}

	public void setRedAlertSovledMessage(int redAlertSovledMessage) {
		this.redAlertSovledMessage = redAlertSovledMessage;
	}

	public int getRedAlertTimeOutMessage() {
		return redAlertTimeOutMessage;
	}

	public void setRedAlertTimeOutMessage(int redAlertTimeOutMessage) {
		this.redAlertTimeOutMessage = redAlertTimeOutMessage;
	}

	public int getRedAlertNotSovledMessage() {
		return redAlertNotSovledMessage;
	}

	public void setRedAlertNotSovledMessage(int redAlertNotSovledMessage) {
		this.redAlertNotSovledMessage = redAlertNotSovledMessage;
	}

	public String getAlertdate() {
		return alertdate;
	}

	public void setAlertdate(String alertdate) {
		this.alertdate = alertdate;
	}

}
